﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ACH
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }


        #region club
        private void positionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PositionTypes pt = new PositionTypes();
            pt.MdiParent = this;
            pt.WindowState = FormWindowState.Maximized;
            pt.Show();
        }

        private void membersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Members m = new Members();
            m.MdiParent = this;
            m.WindowState = FormWindowState.Maximized;
            m.Show();
        }

        private void expensesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Expenses exp = new Expenses();
            exp.MdiParent = this;
            exp.WindowState = FormWindowState.Maximized;
            exp.Show();
        }
        #endregion

        #region trainings

        private void typesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TrainingTypes tt = new TrainingTypes();
            tt.MdiParent = this;
            tt.WindowState = FormWindowState.Maximized;
            tt.Show();
        }

        private void participantPositionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TrainingParticipantPositions tpp = new TrainingParticipantPositions();
            tpp.MdiParent = this;
            tpp.WindowState = FormWindowState.Maximized;
            tpp.Show();
        }

        private void trainingsToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Trainings t = new Trainings();
            t.MdiParent = this;
            t.WindowState = FormWindowState.Maximized;
            t.Show();
        }

        private void participantsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TrainingParticipants tp = new TrainingParticipants();
            tp.MdiParent = this;
            tp.WindowState = FormWindowState.Maximized;
            tp.Show();
        }

        #endregion

        #region accomodation

        private void roomTypesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RoomTypes rt = new RoomTypes();
            rt.MdiParent = this;
            rt.WindowState = FormWindowState.Maximized;
            rt.Show();
        }

        private void lodgingRoomsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LodgingRooms lr = new LodgingRooms();
            lr.MdiParent = this;
            lr.WindowState = FormWindowState.Maximized;
            lr.Show();
        }

        private void lodgingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Lodgings l = new Lodgings();
            l.MdiParent = this;
            l.WindowState = FormWindowState.Maximized;
            l.Show();
        }
        #endregion

        #region places
        private void addressesToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Addresses a = new Addresses();
            a.MdiParent = this;
            a.WindowState = FormWindowState.Maximized;
            a.Show();
        }

        private void locationsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Locations l = new Locations();
            l.MdiParent = this;
            l.WindowState = FormWindowState.Maximized;
            l.Show();
        }
        #endregion

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }



    }
}
